package com.infitecs.eyas.quality.dao;

import com.infitecs.eyas.quality.model.Element;
import com.infitecs.krill.mybatis.annotation.mybatisRepository;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Demon on 2015/4/23.
 */
@mybatisRepository
public interface ElementDao {
    boolean updateCar(@Param("car")double car,@Param("caseId")int caseId);

    boolean updateHar(@Param("har")double har,@Param("caseId")int caseId);

    boolean updateOar(@Param("oar")double oar,@Param("caseId")int caseId);

    boolean updateNar(@Param("nar")double nar,@Param("caseId")int caseId);

    boolean updateSar(@Param("sar")double sar,@Param("caseId")int caseId);

    boolean updateSum(@Param("sum")double sum,@Param("caseId")int caseId);

    boolean updateQnetAr(@Param("qnetAr")double qnetAr,@Param("caseId")int caseId);

    boolean updateQnetArOther(@Param("qnetArOther")double qnetArOther,@Param("caseId")int caseId);

    boolean updateQgrAr(@Param("qgrAr")double qgrAr,@Param("caseId")int caseId);

    boolean updateQgrArOther(@Param("qgrArOther")double qgrArOther,@Param("caseId")int caseId);

    Element getElementByPowerCaseId(@Param("caseId") int caseId);

    void addElement(Element element);

    void updateElement(Element element);
}
